Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use AggregationStorePermissionExecutor for Aggregation Store Model #2102

Merged
merged 2 commits into from
May 18, 2021

Conversation

Chandrasekar-Rajasekar
Copy link
Collaborator

Description

Use AggregationStorePermissionExecutor for Aggregation Store Model.
Fix bugs on AggregationStorePermissionExecutor

How Has This Been Tested?

IT

License

I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@@ -100,7 +100,7 @@ public AggregationStorePermissionExecutor(RequestScope requestScope) {
ChangeSpec changeSpec,
Class<A> annotationClass,
String field) {
throw new UnsupportedOperationException();
return checkSpecificFieldPermissions(resource, changeSpec, annotationClass, field);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is called a bunch of times. Since we only have user check on fields, I guess it would make sense to do what checkSpecificFieldPermissions in here.

@aklish aklish merged commit 06fbda9 into master May 18, 2021
@aklish aklish deleted the ChangePermissionExecutorAggDatastore branch May 18, 2021 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants